home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9643 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  689 b 

  1. Path: inforamp.net!ts1-10
  2. From: rmorin@inforamp.net (Randy Charles Morin)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Leap year
  5. Date: Sun, 03 Mar 96 07:45:06 GMT
  6. Organization: MiddleWorld SoftWare
  7. Message-ID: <4hbiln$899@sam.inforamp.net>
  8. References: <3135A7F2.2120@hiwaay.net>
  9. NNTP-Posting-Host: ts1-10.tor.inforamp.net
  10. X-Newsreader: News Xpress Version 1.0 Beta #4
  11.  
  12. In article <3135A7F2.2120@hiwaay.net>, Lance Perry <lperry@hiwaay.net> wrote:
  13. >Can someone be kind enough to post the formula for Leap Year
  14. >or point me to the place where this can be found?
  15. >
  16. >lperry@hiwaay.net
  17.  
  18. bool IsLeapYear(int x)
  19. {
  20.     return ((x&4) && ((!(x&100)) || (x&1000)));
  21. }
  22.  
  23. I hope I got everything right.
  24.  
  25. Agrivar
  26.